import {lazy} from "react" //实现路由懒加载

let routerList = [
    {
        path:"/all",
        component:lazy(()=>import("../views/all")),
        children:[
            {
                path:"/all/class",
                component:lazy(()=>import("../views/Classman"))
            },
            {
                path:"/all/test",
                component:lazy(()=>import("../views/Testpaperman"))
            },
            {
                from:"/all/",
                to:"/all/class"
            }
        ]
    },
    {
        path:"/login",
        component:lazy(()=>import("../views/login")),
    },
    {
        path:"/401",
        component:lazy(()=>import("../views/401")),
    },
    {
        from:"/",
        to:"/all"
    }
]
export default routerList